﻿using System.Web;
using System.Web.Optimization;

namespace Management
{
    public class BundleConfig
    {
        // 有关绑定的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.EnableOptimizations = true;
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // 使用要用于开发和学习的 Modernizr 的开发版本。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css"));


            //Control区域脚本
            bundles.Add(new ScriptBundle("~/bundles/Control").Include(
                        "~/Scripts/jquery-{version}.js",
                        "~/Scripts/jquery.validate*",
                        "~/Scripts/bootstrap.js",
                        "~/Scripts/respond.js",
                        "~/Scripts/moment-with-locales.js",
                        "~/Scripts/bootstrap-datetimepicker.js",
                        "~/Scripts/bootstrap-dialog.js",
                        "~/Scripts/bootstrap-select.js",
                        "~/Scripts/bootstrap-select-zh_CN.js",
                        "~/Scripts/bootstrap-table.js",
                        "~/Scripts/bootstrap-table-zh-CN.js",
                        "~/Scripts/tableExport.js",
                        "~/Scripts/jquery.twbsPagination.js",
                        "~/Scripts/jquery.ztree.all.min.js"
                        ));

            //Control式样
            bundles.Add(new StyleBundle("~/Content/Control").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/Control.css",
                      "~/Content/bootstrap-datetimepicker.css",
                      "~/Content/bootstrap-dialog.css",
                      "~/Content/bootstrap-select.css",
                      "~/Content/bootstrap-table.css",
                      "~/Content/zTree/metroStyle/metroStyle.css"
                      ));
            
            //ueditor
            bundles.Add(new ScriptBundle("~/Content/ueditor").Include(
                "~/Content/ueditor/ueditor.config.js",
                "~/Content/ueditor/ueditor.all.js"
                ));


            //layer
            bundles.Add(new ScriptBundle("~/Content/layer").Include("~/Content/layer/layer.js", "~/Content/layer/laytpl.js" ,"~/Content/layer/laydate/laydate.js","~/Content/layer/laypage/laypage.js"));
            //echarts
            bundles.Add(new ScriptBundle("~/bundles/echarts").Include("~/Scripts/echarts.min.js", "~/Scripts/vintage.js"));

        }
    }
}
